package com.example.Util;

import android.content.Context;
import android.util.Log;
import android.widget.Toast;

public class LogAndToastUtils {
    private static final String TAG = "fingerHelperLog";
    /**
     * 打印日志
     */
    public static void log(Object msg){
        if(msg != null){
            Log.d(TAG, msg.toString());
        }

    }
    public static void toast(Context context, Object msg){
        if(msg!= null){
            Toast.makeText(context,msg.toString(),Toast.LENGTH_SHORT).show();
        }
    }

}
